package com.csun.cmny.provider.dto;

import com.csun.cmny.provider.model.domain.OmcReportItem;
import com.csun.cmny.provider.validator.OmcReportItemAddValidator;
import com.csun.cmny.provider.validator.OmcReportItemEditValidator;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class ReportItemDto implements Serializable {

    @NotNull(message = "{reportItem.id.null}",
            groups = {OmcReportItemEditValidator.class})
    private Long id;

    /**
     * 服务项id
     */
    @NotNull(message = "{reportItem.serviceItemId.null}",
            groups = {OmcReportItemEditValidator.class})
    @NotNull(message = "{reportItem.serviceItemId.null}",
            groups = {OmcReportItemAddValidator.class})
    private Long serviceItemId;

    /**
     * 异常报告项内容
     */
    private String reportItemContent;

    /*
    * 顺序
    * */
    @NotNull(message = "{reportItem.order.null}",
            groups = {OmcReportItemEditValidator.class})
    @NotNull(message = "{reportItem.order.null}",
            groups = {OmcReportItemAddValidator.class})
    private Integer reportOrder;
}
